/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/13 14:52
 * @copyright: 博为峰
 */
public class MethodParamDemo01 {
    public static void main(String[] args) {
        /*int a = 9;
        m1(a);
        System.out.println("a = " + a);*/

        int[] arr = new int[3];
        arr[0] = 9;
        m2(arr);
        System.out.println("arr[0] = " + arr[0]);
    }

    public static void m2(int[] arr) {
        arr[0] = 6;
    }

    public static void m1(int a) {
        a = 6;
    }
}
